package com.vclee.fast.integration.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vclee.fast.integration.power.model.SysGroup;
import com.vclee.fast.integration.power.model.SysGroupRole;
import com.vclee.fast.integration.power.model.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysGroupMapper extends BaseMapper<SysGroup> {
    List<SysGroupRole> getRoleByGroupId(Integer id);

    int getBranchUserCount(@Param("name") String name, @Param("orgId") Integer orgId, @Param("groupId") Integer groupId);

    List<SysUser> getBranchUserList(@Param("name") String name, @Param("orgId") Integer orgId, @Param("groupId") Integer groupId, @Param("offset") Integer offset, @Param("size") Integer size);
}